package com.chushouya.common.constant;

/**
 * 业务错误码
 */
public enum BusinessCode{

    username_or_password_mismatch(400, "用户名或密码错误"),
    validate_captcha_mismatch(400, "验证码错误"),
    validate_captcha_invalid(400, "验证码失效"),
    user_is_disable(400, "登录用户：{} 已被停用"),
    user_is_delete(400, "登录用户：{} 已被删除"),
    ;
    private Integer code;

    private String msg;

    BusinessCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer code() {
        return this.code;
    }

    public String msg() {
        return this.msg;
    }
}
